package vsvm.math.statistics.histogram;

import java.util.ArrayList;
import java.util.Iterator;


public class HistogramData {
	
	private ArrayList <HistogramItem> items = new ArrayList();
	private int attributeType = 0;
	
	public HistogramData(int attributeType)
	{
		this.attributeType = attributeType;
	}
	
	public Iterator<HistogramItem> getItems()
	{
		return items.iterator();
	}
	
	public void addItem(HistogramItem item)
	{
		items.add(item);
	}
	
	public int getAttributeType()
	{
		return this.attributeType;
	}
	
	public HistogramItem getHistogramItem(int index)
	{
		return items.get(index);
	}
	
	public int getItemsCount()
	{
		return items.size();
	}

}
